﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.IoTManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.IoTManagement.MeterParameterVMs
{
    public partial class MeterParameterBatchVM : BaseBatchVM<MeterParameter, MeterParameter_BatchEdit>
    {
        public MeterParameterBatchVM()
        {
            ListVM = new MeterParameterListVM();
            LinkedVM = new MeterParameter_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MeterParameter_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MeterParameter._Device")]
        public long? DeviceId { get; set; }
        [Display(Name = "_Model._MeterParameter._ParamName")]
        public string ParamName { get; set; }
        [Display(Name = "_Model._MeterParameter._ParameterAddress")]
        public string ParameterAddress { get; set; }
        [Display(Name = "_Model._MeterParameter._ParameterDataType")]
        public TagDataTypeEnum? ParameterDataType { get; set; }
        [Display(Name = "_Model._MeterParameter._ParamUnit")]
        public string ParamUnit { get; set; }
        [Display(Name = "_Model._MeterParameter._Description")]
        public string Description { get; set; }
        [Display(Name = "_Model._MeterParameter._Eanble")]
        public bool? Eanble { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}